extends Control
class_name  RoomMemberItem

@onready var nameLabel = $Name
@onready var readyLabel = $Ready

func init(user):
	nameLabel.text = user["userName"]
	if user["isRoomMaster"]:
		readyLabel.text = "房主"
	else:
		readyLabel.text = "已准备" if user["ready"] == true else "未准备"
	
